package com.wyzz.hr.pojo;

import java.math.BigDecimal;
import java.util.Date;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.base.wf.AbstractWorkflow;
import com.wyzz.hr.pojo.base.BaseOvertimerequest;

public class Overtimerequest extends BaseOvertimerequest {

	public Overtimerequest() {
	}

	public Overtimerequest(String orId) {
		super(orId);
	}

	public Overtimerequest(String orId, Overtimetype orOtNo,
			Department orEmpDept, Employee orEmpNo, Location orEmpLocationNo,
			Integer orNo, String orReason, Date orStartDateApply,
			Date orEndDateApply, BigDecimal orTotalHoursApply,
			Date orStartDate, Date orEndDate, BigDecimal orTotalHours,
			Integer orStatus, Date orCreateTime, Date orLastChangeTime) {
		super(orId, orOtNo, orEmpDept, orEmpNo, orEmpLocationNo, orNo,
				orReason, orStartDateApply, orEndDateApply, orTotalHoursApply,
				orStartDate, orEndDate, orTotalHours, orStatus, orCreateTime,
				orLastChangeTime);
	}

	public AbstractWorkflow getWorkflow() {
		return workflow;
	}

	public void setWorkflow(AbstractWorkflow workflow) {
		this.workflow = workflow;
	}

	public void setOrStatus(Integer orStatus) {
		super.setOrStatus(orStatus);
		if (orStatus == null) {
			orStatusMean = null;
		} else {
			String status = ComonBeans.getParameterValue(PROP_OR_STATUS,
					new String[] { orStatus.toString() });
			if (status != null)
				orStatusMean = status.trim();
			else
				orStatusMean = null;
		}
	}

	public String getOrStatusMean() {
		return orStatusMean;
	}

	private static final long serialVersionUID = 1L;
	private AbstractWorkflow workflow;
	private String orStatusMean;
}
